package com.destiny.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.destiny.commons.vo.ResultVO;
import com.destiny.entity.Hero;
import com.destiny.entity.Skill;
import com.destiny.mapper.HeroMapper;
import com.destiny.service.HeroService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author et2110
 * @since 2022-02-25
 */
@Service
public class HeroServiceImpl extends ServiceImpl<HeroMapper, Hero> implements HeroService {

    @Autowired
    HeroMapper heroMapper;

    /**
     * 查询英雄信息
     *
     * @return
     */
    @Override
    public List<Hero> getHero() {
        return heroMapper.getHero();
    }
}
